package com.wpw.dream.hashcode;

import java.util.HashMap;
import java.util.Map;

public class HashCodeTest {

	public static void main(String[] args) {
		Map<Object, Object> map = new HashMap<>();
		A a;
		for (int i = 0; i < 100000; i++) {
			a = new A();
			a.a = 1;
			map.put(a.hashCode(), a);
		}
		System.out.println(map.size());
	}
}

class A {
	
	public int a;
	
	int i = 1;
}
